class BlackIp(object):
    def __init__(self, src_ip, block_device, block_type, operate, create_user, create_date, location):
        self.src_ip = src_ip
        self.block_device = block_device
        self.block_type = block_type
        self.operate = operate
        self.create_user = create_user
        self.create_date = create_date
        self.location = location

    def __str__(self):
        return "%s,%s,%s,%s,%s,%s,%s" % (
            self.src_ip, self.block_device, self.block_type, self.operate, self.create_user, self.create_date,
            self.location)
